import axios from './axios'
/**
 * 新请求
 */

// 查询所有人员（不分页）
export function getApiEmpList(params) {
    const url = '/ms/api/emp/list'
    return axios.get(url, params)
}

// 项目列表(不分页)
export function getAllProjectList(params) {
    const url = '/ms/api/project/list'
    return axios.get(url, params)
}

// 文件上传
export function appDocumentManageFileUpload(params) {
    const url = '/ms/api/appDocumentManage/file/upload'
    return axios.post(url, params)
}

//人员获取
export function getUserList(params) {
    const url = '/ms/api/quality/check/user/list'
    return axios.get(url, params)
}

//获取所有的合作单位
export function getAllCompangList(params) {
    const url = '/ms/api/corp/getCorpList'
    return axios.get(url, params)
}

//根据组织机构查找班组列表
export function getGroupListByDeptId(params) {
    const url = '/ms/api/group/groupListByDeptId'
    return axios.get(url, params)
}

/* 入场申请 */
// 入场申请-列表
/* export function apiApplyList(params) {
    const url = '/mp/api/apply/list'
    return axios.get(url, params)
} */
export function apiApplyList(params) {
    const url = '/mp/api/apply/list'
    return axios.post(url, params)
}
// 入场申请-人员申请方法
export function apiApplyWorkPersonnel(params) {
    const url = '/mp/api/apply/work/personnel'
    return axios.post(url, params)
}
// 入场申请-入场人员列表
export function apiApplyWorkQueryPersonnel(params) {
    const url = '/mp/api/apply/work/queryPersonnel'
    return axios.post(url, params)
}
// 入场申请-单位列表
export function apiApplyWorkQueryInstitution(params) {
    const url = '/mp/api/apply/work/queryInstitution'
    return axios.get(url, params)
}
// 入场申请-修改入场申请
export function apiApplyEdit(params) {
    const url = '/mp/api/apply/edit'
    return axios.post(url, params)
}

// 入场申请-修改入场申请
export function apiApplyWorkQueryEntryInfo(params) {
    const url = '/mp/api/apply/work/queryEntryInfo'
    return axios.get(url, params)
}

// 入场审核-获取审核列表
export function apiApplyWorkQueryReviewList(params) {
    const url = 'mp/api/apply/work/queryReviewList'
    return axios.get(url, params)
}

// 入场审核-审核
export function applyWorkEntryReview(params) {
    const url = 'mp/api/apply/work/entryReview'
    return axios.get(url, params)
}

// 选择班组长-列表
export function apiEmpLeaderList(params) {
    const url = 'ms/api/emp/leaderList'
    return axios.get(url, params)
}


// 工作计划-列表
export function apiWorkPlanWorkPageList(params) {
    const url = '/mp/api/workPlan/work/pageList'
    return axios.get(url, params)
}
// 工作计划-添加
export function apiWorkPlanWorkSaveWorkPlan(params) {
    const url = '/mp/api/workPlan/saveWorkPlan'
    return axios.post(url, params)
}
// 入场凭证ID
export function apiWorkPlanQueryEntryerId(params) {
    const url = '/mp/api/workPlan/queryEntryerId'
    return axios.get(url, params)
}
// 施工人员
export function apiWorkPlanQueryWorkers(params) {
    const url = '/mp/api/workPlan/queryWorkers'
    return axios.get(url, params)
}
// 工作区域
export function apiWorkPlanQueryWorkArea(params) {
    const url = '/mp/api/workPlan/queryWorkArea'
    return axios.get(url, params)
}
// 设备清单
export function appApplyWorkQueryMach(params) {
    const url = '/mp/api/workPlan/queryMach'
    return axios.get(url, params)
}
// 工作计划-审核
export function appApplyWorkEntryReview(params) {
    const url = '/mp/api/workPlan/review'
    return axios.get(url, params)
}
// 工作计划-工作计划详情
export function appWorkPlanDetail(params) {
    const url = '/mp/api/workPlan/detail'
    return axios.get(url, params)
}
// 工作计划-修改工作计划
export function appWorkPlanEdit(params) {
    const url = '/mp/api/workPlan/edit'
    return axios.post(url, params)
}

// 作业管理-到场确认-列表
export function apiWorkPlanList(params) {
    const url = '/mp/api/workPlan/list'
    return axios.get(url, params)
}

// 作业管理-到场确认-添加
export function apiWorkPlanSubmit(params) {
    const url = '/mp/api/workPlan/submit'
    return axios.post(url, params)
}

// 班会管理-列表
export function apiClassMeetingList(params) {
    const url = '/mp/api/classMeeting/list'
    return axios.get(url, params)
}
// 班会管理-工作计划
export function apiWorkPlanWorkList(params) {
    const url = '/mp/api/workPlan/work/list'
    return axios.get(url, params)
}

/* 项目管理-方案管理 */
// 项目管理-方案管理-列表
export function apiProjectPlanList(params) {
    const url = '/ms/api/project/plan/list'
    return axios.get(url, params)
}

// 项目管理-方案管理-添加
export function apiProjectPlanAdd(params) {
    const url = '/ms/api/project/plan/add'
    return axios.post(url, params)
}

// 项目管理-方案管理-详情
export function apiProjectPlanDetail(params) {
    const url = '/ms/api/project/plan/detail/'
    return axios.get(url + params)
}

// 项目管理-方案管理-修改
export function apiProjectPlanUpdate(params) {
    const url = '/ms/api/project/plan/update'
    return axios.post(url, params)
}

// 项目管理-方案管理-删除
export function apiProjectPlanDelete(params) {
    const url = '/ms/api/project/plan/delete/'
    return axios.post(url + params)
}

/* 项目管理-合同管理 */
// 项目管理-合同管理-列表
export function apiContractList(params) {
    const url = '/ms/api/contract/list'
    return axios.get(url, params)
}

// 项目管理-合同管理-添加
export function apiContractAdd(params) {
    const url = '/ms/api/contract/add'
    return axios.post(url, params)
}

// 项目管理-合同管理-详情
export function apiContractDetail(params) {
    const url = '/ms/api/contract/detail/'
    return axios.get(url + params)
}

// 项目管理-合同管理-修改
export function apiContractUpdate(params) {
    const url = '/ms/api/contract/update'
    return axios.post(url, params)
}

// 项目管理-合同管理-删除
export function apiContractDelete(params) {
    const url = '/ms/api/contract/delete/'
    return axios.post(url + params)
}

/* 项目管理-资质管理 */
// 项目管理-资质管理-列表
export function apiQualificationList(params) {
    const url = '/ms/api/qualification/list'
    return axios.get(url, params)
}

// 项目管理-资质管理-添加
export function apiQualificationAdd(params) {
    const url = '/ms/api/qualification/add'
    return axios.post(url, params)
}

// 项目管理-资质管理-详情
export function apiQualificationDetail(params) {
    const url = '/ms/api/qualification/detail/'
    return axios.get(url + params)
}

// 项目管理-资质管理-修改
export function apiQualificationUpdate(params) {
    const url = '/ms/api/qualification/update'
    return axios.post(url, params)
}

// 项目管理-资质管理-删除
export function apiQualificationDelete(params) {
    const url = '/ms/api/qualification/delete/'
    return axios.post(url + params)
}

/* 项目管理-会议纪要 */
// 项目管理-会议纪要-列表
export function apiMeetingMinutesList(params) {
    const url = '/ms/api/meeting/minutes/list'
    return axios.get(url, params)
}

// 项目管理-会议纪要-添加
export function apiMeetingMinutesAdd(params) {
    const url = '/ms/api/meeting/minutes/add'
    return axios.post(url, params)
}

// 项目管理-会议纪要-详情
export function apiMeetingMinutesDetail(params) {
    const url = '/ms/api/meeting/minutes/detail/'
    return axios.get(url + params)
}

// 项目管理-会议纪要-修改
export function apiMeetingMinutesUpdate(params) {
    const url = '/ms/api/meeting/minutes/update'
    return axios.post(url, params)
}

// 项目管理-会议纪要-删除
export function apiMeetingMinutesDelete(params) {
    const url = '/ms/api/meeting/minutes/delete/'
    return axios.post(url + params)
}

// 作业管理-日报记录-列表
export function apiWxDailyList(params) {
    const url = '/mp/api/wxDaily/list'
    return axios.get(url, params)
}
// 作业管理-日报记录-添加
export function apiWxDailySaveReport(params) {
    const url = '/mp/api/wxDaily/wxDaily/saveReport'
    return axios.post(url, params)
}

// 班会管理-人员列表
export function apiClassMeetingQueryEntryerId(params) {
    const url = '/mp/api/classMeeting/queryEntryerId'
    return axios.post(url, params)
}

// 班会管理-创建班会
export function apiClassMeetingSaveClassMeeting(params) {
    const url = '/mp/api/classMeeting/saveClassMeeting'
    return axios.post(url, params)
}

// 班会管理-班会资料
export function apiFileList(params) {
    const url = '/mp/api/file/list'
    return axios.get(url, params)
}

// 保存文件信息
export function apiFileUpload(params) {
    const url = '/mp/api/file/upload'
    return axios.post(url, params)
}

// 班会管理-签到人员列表
export function apiClassMeetingQuerycheckInList(params) {
    const url = '/mp/api/classMeeting/querycheckInList'
    return axios.post(url, params)
}

/* 培训考试管理 */
// 题库管理-题库列表
export function apiTrainingList(params) {
    const url = '/ms/api/training/list'
    return axios.get(url, params)
}
// 题库管理-题库新增
export function apiTrainingAdd(params) {
    const url = '/ms/api/training/add'
    return axios.post(url, params)
}
// 题库管理-题库修改
export function apiTrainingEdit(params) {
    const url = '/ms/api/training/edit'
    return axios.post(url, params)
}
// 题库管理-题库删除
export function apiTrainingDel(params) {
    const url = '/ms/api/training/del/'
    return axios.post(url + params)
}

// 题库分类管理-列表
export function apiTrainingCategoryList(params) {
    const url = '/ms/api/trainingCategory/list'
    return axios.get(url, params)
}
// 题库分类管理-新增
export function apiTrainingCategoryAdd(params) {
    const url = '/ms/api/training/add'
    return axios.post(url, params)
}
// 题库分类管理-修改
export function apiTrainingCategoryEdit(params) {
    const url = '/ms/api/training/edit'
    return axios.post(url, params)
}
// 题库分类管理-删除
export function apiTrainingCategoryDel(params) {
    const url = '/ms/api/training/del/'
    return axios.post(url + params)
}


// 题库问题管理-列表
export function apiTrainingQuestionsList(params) {
    const url = '/ms/api/trainingQuestions/list'
    return axios.get(url, params)
}
// 题库问题管理-删除
export function apiTrainingQuestionsDel(params) {
    const url = '/ms/api/trainingQuestions/del/'
    return axios.post(url + params)
}

// 试卷管理-新增
export function apiExamPaperAdd(params) {
    const url = '/ms/api/examPaper/add'
    return axios.post(url, params)
}
// 试卷管理-修改
export function apiExamPaperEdit(params) {
    const url = '/ms/api/examPaper/edit'
    return axios.post(url, params)
}
// 试卷管理-删除
export function apiExamPaperDel(params) {
    const url = '/ms/api/examPaper/del/'
    return axios.post(url + params)
}

// 考试/培训-新增
export function apiExamRecordAdd(params) {
    const url = '/ms/api/examRecord/add'
    return axios.post(url, params)
}
// 考试/培训-修改
export function apiExamRecordEdit(params) {
    const url = '/ms/api/examRecord/edit'
    return axios.post(url, params)
}

// 答题记录-列表
export function apiTrainingStudyProgressList(params) {
    const url = '/ms/api/trainingStudyProgress/list'
    return axios.get(url, params)
}

// 考试记录-列表
export function apiExamRecordList(params) {
    const url = '/ms/api/examRecord/list'
    return axios.get(url, params)
}
